
public class PrimHeapNode implements Comparable<Object>{

	private Vertex my_vertex;
	private int my_position_in_the_heap;
	
	public PrimHeapNode(){
		
		my_vertex = null;
		my_position_in_the_heap = 0;
	}
	
	
	/**
	 * @return the my_vertex
	 */
	public Vertex getMy_vertex() {
		return my_vertex;
	}


	/**
	 * @param my_vertex the my_vertex to set
	 */
	public void setMy_vertex(Vertex my_vertex) {
		this.my_vertex = my_vertex;
	}


	/**
	 * @return the my_position_in_the_heap
	 */
	public int getMy_position_in_the_heap() {
		return my_position_in_the_heap;
	}


	/**
	 * @param my_position_in_the_heap the my_position_in_the_heap to set
	 */
	public void setMy_position_in_the_heap(int my_position_in_the_heap) {
		this.my_position_in_the_heap = my_position_in_the_heap;
	}


	@Override
	public int compareTo(Object the_other) {
		Vertex other_vertex = (Vertex) the_other;
		return (int)((Double)my_vertex.getData() -  (Double)other_vertex.getData());
	}

}
